package com.weifei.core.ioc;

/**
 * 我们从IOC容器中拿到的bean不一定是原生bean,可能是一个代理对象，例如aop对象
 */
public class WFBeanWrapper {
    private Object wrappedInstance;
    private Class<?> wrappedClass;

    public WFBeanWrapper() {}

    public WFBeanWrapper(Object wrappedInstance) {
        this.wrappedInstance = wrappedInstance;
    }

    public Class<?> getWrappedClass() {
        return this.wrappedInstance.getClass();
    }

    public Object getWrappedInstance() {
        return this.wrappedInstance;
    }

}
